package com.hwz.gulimaill.auth.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @Author: hwz
 * @CreateTime: 2025-10-19
 */

@Data
public class UserRegisterVo {
    @NotEmpty(message = "用户名不能为空")
//    @Length(min = 6,max = 18,message = "用户名长度在6-18位之间")
    private String username;
    @NotEmpty(message = "密码不能为空")
    @Length(min = 6,max = 18,message = "密码在6-18位之间")
    private String password;
    @NotEmpty(message = "邮箱不能为空")
    private String email;
    @NotEmpty(message = "验证码不能为空")
    private String code;
}
